package com.java.io;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

/**
 * 作用:IO工具类
 */
public class IOUtils {

	public static void close(InputStream is){
		if (is != null) {
			try {
				is.close();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
	}

	public static void close(OutputStream out){
		if (out != null) {
			try {
				out.close();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
	}
}
